package net.kucoe.grin.internal.interaction;

/**
 * {@link ContinueRequest} for failed parameter.
 * 
 * @author Vitaliy Basyuk
 */
public class ParameterFailedRequest extends ParameterRelatedRequest {
    
    private final Throwable error;
    
    /**
     * Constructs ParameterFailedRequest.
     * 
     * @param parameter
     * @param error
     */
    public ParameterFailedRequest(final String parameter, final Throwable error) {
        super(parameter);
        this.error = error;
    }
    
    /**
     * Returns the error Throwable.
     * 
     * @return the error Throwable.
     */
    public Throwable getError() {
        return error;
    }
    
}
